package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.AuditFlowSetProcess;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 流程步骤说明 Mapper 接口
 * </p>
 *
 * @author hpiggy
 * @since 2025-01-01
 */
public interface AuditFlowSetProcessMapper extends BaseMapper<AuditFlowSetProcess> {

    @Select("select IFNULL(MAX(version_num),0) as version_num from audit_flow_set_process where flow_id = ${flowId}")
    public Integer getMaxVersionnNum(@Param("flowId") Long flowId);
}
